package com.bluesky.plum.uimodels.render.html.components;

import com.bluesky.javawebbrowser.domain.html.tags.Tag;
import com.bluesky.javawebbrowser.domain.html.tags.TagType;
import com.bluesky.javawebbrowser.domain.html.tags.table.TR;
import com.bluesky.plum.richdomain.RichDomainField;

public class HCheckBox extends
		com.bluesky.plum.uimodels.standard.components.CheckBox {

	com.bluesky.javawebbrowser.domain.html.tags.form.input.CheckBox checkBox;

	public HCheckBox(RichDomainField field) {
		super(field);

		checkBox = new com.bluesky.javawebbrowser.domain.html.tags.form.input.CheckBox();
		checkBox.setChecked(isChecked());

	}

	@Override
	public Object getNativeComponent() {
		checkBox.setName(getId());

		return checkBox;
	}

	@Override
	public Boolean isChecked() {
		return checkBox.isChecked();
	}

	@Override
	public void setChecked(boolean checked) {

		checkBox.setChecked(checked);
	}
}
